home *** CD-ROM | disk | FTP | other *** search
/ PC World 2007 July & August / PCWorld_2007-07-08_cd.bin / domacnost a kancelar / winrar / wrar370.exe / Rar.txt < prev    next >
Encoding:
Text File  |  2007-03-05  |  70.4 KB  |  1,852 lines

  1.                              User's Manual
  2.                              ~~~~~~~~~~~~~
  3.                      RAR 3.70 32-bit console version
  4.                      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  5.  
  6.                        =-=-=-=-=-=-=-=-=-=-=-=-=-=-
  7.                        Welcome to the RAR Archiver!
  8.                        -=-=-=-=-=-=-=-=-=-=-=-=-=-=
  9.  
  10.  Introduction
  11.  ~~~~~~~~~~~~
  12.  
  13.     RAR is a powerful tool allowing you to manage and control archive
  14.   files. Console RAR supports archives only in RAR format, the names
  15.   of which usually have a ".rar" extension. ZIP and other formats
  16.   are not supported. Windows users may install GUI RAR version - WinRAR,
  17.   which is able to process many more archive types.
  18.  
  19.   RAR features include:
  20.  
  21.     *  Highly sophisticated, original compression algorithm
  22.     *  Special compression algorithms optimized for text, audio,
  23.        graphics data, 32 and 64-bit Intel executables
  24.     *  Better compression than similar tools, using 'solid' archiving
  25.     *  Authenticity verification (registered version only)
  26.     *  Self-extracting archives and volumes (SFX)
  27.     *  Ability to recover physically damaged archives
  28.     *  Locking, password, file order list, file security & more ...
  29.  
  30.  
  31.  Configuration file
  32.  ~~~~~~~~~~~~~~~~~~
  33.  
  34.   RAR for Unix reads configuration information from the file .rarrc
  35.   in the user's home directory (stored in HOME environment variable)
  36.   or in /etc directory.
  37.  
  38.   RAR for Windows reads configuration information from the file rar.ini,
  39.   placed in the same directory as the rar.exe file.
  40.  
  41.   This file may contain the following string:
  42.  
  43.   switches=any RAR switches, separated by spaces
  44.  
  45.   For example:
  46.  
  47.   switches=-m5 -s
  48.  
  49.  
  50.  Environment variable
  51.  ~~~~~~~~~~~~~~~~~~~~
  52.  
  53.     Default parameters may be added to the RAR command line by establishing
  54.     an environment variable "RAR".
  55.  
  56.     For instance, in UNIX following lines may be added to your profile:
  57.  
  58.       RAR='-s -md1024'
  59.       export RAR
  60.  
  61.     RAR will use this string as default parameters in the command line and
  62.     will create "solid" archives with 1024 KB sliding dictionary size.
  63.  
  64.     RAR handles options with priority as following:
  65.  
  66.        command line switches                   highest priority
  67.        switches in the RAR variable            lower priority
  68.        switches saved in configuration file    lowest priority
  69.  
  70.  
  71.  Log file
  72.  ~~~~~~~~
  73.  
  74.   If the switch -ilog is specified in the command line or configuration
  75.   file, RAR will write informational messages, concerning errors
  76.   encountered while processing archives, into a log file. Read switch
  77.   -ilog description for more details.
  78.  
  79.  
  80.  The file order list for solid archiving - rarfiles.lst
  81.  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  82.  
  83.   rarfiles.lst contains a user-defined file list, which tells RAR
  84.   the order in which to add files to a solid archive. It may contain
  85.   file names, wildcards and special entry - $default. The default
  86.   entry defines the place in order list for files not matched
  87.   with other entries in this file. The comment character is ';'.
  88.  
  89.   In Windows this file should be placed in the same directory as RAR
  90.   or in %APPDATA%\WinRAR directory, in Unix - to the user's home directory
  91.   or in /etc.
  92.  
  93.   Tips to provide improved compression and speed of operation:
  94.  
  95.   - similar files should be grouped together in the archive;
  96.   - frequently accessed files should be placed at the beginning.
  97.  
  98.   Normally masks placed nearer to the top of list have a higher priority,
  99.   but there is an exception from this rule. If rarfiles.lst contains such
  100.   two masks that all files matched by one mask are also matched by another,
  101.   that mask which matches a smaller subset of file names will have higher
  102.   priority regardless of its position in the list. For example, if you have
  103.   *.cpp and f*.cpp masks, f*.cpp has a higher priority, so the position of
  104.   'filename.cpp' will be chosen according to 'f*.cpp', not '*.cpp'.
  105.  
  106.  
  107.  RAR command line syntax
  108.  ~~~~~~~~~~~~~~~~~~~~~~~
  109.  
  110.  Syntax
  111.  
  112.     RAR <command>  [ -<switches> ]  <archive>  [ <@listfiles...> ]
  113.         [ <files...> ]  [ <path_to_extract\> ]
  114.  
  115.  Description
  116.  
  117.     Command line options (commands and switches) provide control of
  118.     creating and managing archives with RAR. The command is a string (or a
  119.     single letter) which commands RAR to perform a corresponding action.
  120.     Switches are designed to modify the way RAR performs the action. Other
  121.     parameters are archive name and files to be archived into or extracted
  122.     from the archive.
  123.  
  124.     Listfiles are plain text files that contain names of files to process.
  125.     File names should start at the first column. It is possible to
  126.     put comments to the listfile after // characters. For example,
  127.     you may create backup.lst containing the following strings:
  128.  
  129.     c:\work\doc\*.txt         //backup text documents
  130.     c:\work\image\*.bmp       //backup pictures
  131.     c:\work\misc
  132.  
  133.     and then run:
  134.  
  135.        rar a backup @backup.lst
  136.  
  137.     If you wish to read file names from stdin (standard input),
  138.     specify the empty listfile name (just @).
  139.  
  140.     Win32 console RAR uses OEM (DOS) encoding in list files.
  141.  
  142.     You may specify both usual file names and list files in the same
  143.     command line. If neither files nor listfiles are specified,
  144.     then *.* is implied and RAR will process all files
  145.  
  146.     In a UNIX environment you need to quote wildcards to avoid them
  147.     being expanded by shell. For example, this command will extract
  148.     *.asm files from RAR archives in current path:
  149.  
  150.        rar e '*.rar' '*.asm'
  151.  
  152.  
  153.     Command could be any of the following:
  154.  
  155.     a       Add files to archive.
  156.  
  157.             Example:
  158.  
  159.             create or update existent archive myarch, adding all files
  160.             in the current directory
  161.  
  162.             rar a myarch
  163.  
  164.  
  165.     c       Add archive comment. Comments are displayed while the archive is
  166.             being processed. Comment length is limited to 62000 bytes
  167.  
  168.             Examples:
  169.  
  170.             rar c distrib.rar
  171.  
  172.             Also comments may be added from a file using -z[file] switch.
  173.             The following command adds a comment from info.txt file:
  174.  
  175.             rar c -zinfo.txt dummy
  176.  
  177.  
  178.     cf      Add files comment. File comments are displayed when the 'v'
  179.             command is given. File comment length is limited to 32767 bytes.
  180.  
  181.             Example:
  182.  
  183.             rar cf bigarch *.txt
  184.  
  185.  
  186.     ch      Change archive parameters.
  187.  
  188.             This command can be used with most of archive modification
  189.             switches to modify archive parameters. It is especially
  190.             convenient for switches like -av, -cl, -cu, -tl, which do not
  191.             have a dedicated command.
  192.  
  193.             It is not able to recompress, encrypt or decrypt archive data
  194.             and it cannot merge or create volumes. If used without any
  195.             switches, 'ch' command just copies the archive data without
  196.             modification.
  197.  
  198.             Example:
  199.  
  200.             Set archive time to latest file:
  201.  
  202.             rar ch -tl files.rar
  203.  
  204.  
  205.     cw      Write archive comment to specified file.
  206.  
  207.             Format of output file depends on -sc switch.
  208.  
  209.             Examples:
  210.  
  211.             1) rar cw arc comment.txt
  212.  
  213.             2) rar cw -scuc arc unicode.txt
  214.  
  215.  
  216.     d       Delete files from archive. Please note if the processing of this
  217.             command results in removing all the files from the archive,
  218.             the empty archive would removed.
  219.  
  220.  
  221.     e       Extract files to current directory.
  222.  
  223.  
  224.     f       Freshen files in archive. Updates those files changed since they
  225.             were packed to the archive. This command will not add new files
  226.             to the archive.
  227.  
  228.  
  229.     i[i|c|h|t]=<string>
  230.             Find string in archives.
  231.  
  232.             Supports following optional parameters:
  233.  
  234.               i - case insensitive search (default);
  235.  
  236.               c - case sensitive search;
  237.  
  238.               h - hexadecimal search;
  239.  
  240.               t - use ANSI, Unicode and OEM character tables (Win32 only);
  241.  
  242.             If no parameters are specified, it is possible to use
  243.             the simplified command syntax i<string> instead of i=<string>
  244.  
  245.             It is allowed to specify 't' modifier with other parameters,
  246.             for example, ict=string performs case sensitive search
  247.             using all mentioned above character tables.
  248.  
  249.             Examples:
  250.  
  251.             1) rar "ic=first level" -r c:\*.rar *.txt
  252.  
  253.             Perform case sensitive search of "first level" string
  254.             in *.txt files in *.rar archives on the disk c:
  255.  
  256.             2) rar ih=f0e0aeaeab2d83e3a9 -r e:\texts
  257.  
  258.             Search for hex string f0 e0 ae ae ab 2d 83 e3 a9
  259.             in rar archives in e:\texts directory.
  260.  
  261.  
  262.     k       Lock archive. Any command which intends to change the archive
  263.             will be ignored.
  264.  
  265.             Example:
  266.  
  267.             rar k final.rar
  268.  
  269.  
  270.     l[t,b]  List contents of archive [technical]. Files are listed as with
  271.             the 'v' command with the exception of the file path. i.e. only
  272.             the file name is displayed. Optional technical information
  273.             (host OS, solid flag and old version flag) is displayed
  274.             when 't' modifier is used. Modifier 'b' forces RAR to output
  275.             only bare file names without any additional information.
  276.  
  277.  
  278.     m[f]    Move to archive [files only]. Moving files and directories
  279.             results in the files and directories being erased upon
  280.             successful completion of the packing operation. Directories will
  281.             not be removed if 'f' modifier is used and/or '-ed' switch is
  282.             applied.
  283.  
  284.  
  285.     p       Print file to stdout.
  286.  
  287.             You may use this command together with -inul switch to disable
  288.             all RAR messages and print only file data. It may be important
  289.             when you need to send a file to stdout for use in pipes.
  290.  
  291.  
  292.     r       Repair archive. Archive repairing is performed in two stages.
  293.             First, the damaged archive is searched for a recovery record
  294.             (see 'rr' command). If the archive contains a recovery record
  295.             and if the portion of the damaged data is continuous and less
  296.             than N*512 bytes, where N is number of recovery sectors placed
  297.             into the archive, the chance of successful archive
  298.             reconstruction is very high. When this stage has been completed,
  299.             a new archive will be created, called fixed.arcname.rar,
  300.             where 'arcname' is the original (damaged) archive name.
  301.  
  302.             If a broken archive does not contain a recovery record or if
  303.             the archive is not completely recovered due to major damage, a
  304.             second stage is performed. During this stage only the archive
  305.             structure is reconstructed and it is impossible to recover
  306.             files which fail the CRC validation, it is still possible,
  307.             however, to recover undamaged files, which were inaccessible
  308.             due to the broken archive structure. Mostly this is useful
  309.             for non-solid archives.
  310.  
  311.             When the second stage is completed, the reconstructed archive
  312.             will be saved as rebuilt.arcname.rar, where 'arcname' is
  313.             the original archive name.
  314.  
  315.             RAR/DOS32 version uses _recover.rar and _reconst.rar instead
  316.             of names mentioned aboves.
  317.  
  318.             While the recovery is in progress, RAR may prompt the user for
  319.             assistance when a suspicious file is detected.
  320.  
  321.                       Suspicious entry
  322.  
  323.               Name:  <possibly filename>
  324.               Size:  <size>    Packed: <compressed size>
  325.  
  326.                       Add it: Yes/No/All
  327.  
  328.             Answer 'y' to add this entry to the file fixed.arcname.rar.
  329.  
  330.             Example:
  331.  
  332.             rar r buggy.rar
  333.  
  334.  
  335.     rc      Reconstruct missing and damaged volumes using recovery volumes
  336.             (.rev files). You need to specify any existing volume
  337.             as the archive name, for example, 'rar rc backup.part03.rar'
  338.  
  339.             Read 'rv' command description for information about
  340.             recovery volumes.
  341.  
  342.  
  343.     rn      Rename archived files.
  344.  
  345.             The command syntax is:
  346.  
  347.             rar rn <arcname> <srcname1> <destname1> ... <srcnameN> <destnameN>
  348.  
  349.             For example, the following command:
  350.  
  351.             rar rn data.rar readme.txt readme.bak info.txt info.bak
  352.  
  353.             will rename readme.txt to readme.bak and info.txt to info.bak
  354.             in the archive data.rar.
  355.  
  356.             It is allowed to use wildcards in the source and destination
  357.             names for simple name transformations like changing file
  358.             extensions. For example:
  359.  
  360.             rar rn data.rar *.txt *.bak
  361.  
  362.             will rename all *.txt files to *.bak.
  363.  
  364.             RAR does not check if the destination file name is already
  365.             present in the archive, so you need to be careful to avoid
  366.             duplicated names. It is especially important when using
  367.             wildcards. Such a command is potentially dangerous, because
  368.             a wrong wildcard may corrupt all archived names.
  369.  
  370.  
  371.     rr[N]   Add data recovery record. Optionally, redundant information
  372.             (recovery record) may be added to an archive. This will cause
  373.             a small increase of the archive size and helps to recover
  374.             archived files in case of floppy disk failure or data losses of
  375.             any other kind. A recovery record contains up to 524288 recovery
  376.             sectors. The number of sectors may be specified directly in the
  377.             'rr' command (N = 1, 2 .. 524288) or, if it is not specified by
  378.             the user, it will be selected automatically according to the
  379.             archive size: a size of the recovery information will be about
  380.             1% of the total archive size, usually allowing the recovery of
  381.             up to 0.6% of the total archive size of continuously damaged data.
  382.  
  383.             It is also possible to specify the recovery record size in
  384.             percent to the archive size. Just append the percent character
  385.             to the command parameter. For example:
  386.  
  387.             rar rr3% arcname
  388.  
  389.             Note that if you run this command from .bat or .cmd file,
  390.             you need to use rr3%% instead of rr3%, because the command
  391.             processor treats the single '%' character as the start of
  392.             a batch file parameter. You may also use 'p' instead of '%',
  393.             so 'rr3p' will work too.
  394.  
  395.             If data is damaged continuously, then each rr-sector helps to
  396.             recover 512 bytes of damaged information. This value may be
  397.             lower in cases of multiple damage.
  398.  
  399.             The size of the recovery record may be approximately determined
  400.             by the formula <archive size>/256 + <number of recovery
  401.             sectors>*512 bytes.
  402.  
  403.  
  404.     rv[N]   Create recovery volumes (.rev files), which can be later
  405.             used to reconstruct missing and damaged files in a volume
  406.             set. This command makes sense only for multivolume archives
  407.             and you need to specify the name of the first volume
  408.             in the set as the archive name. For example:
  409.  
  410.             rar rv3 data.part01.rar
  411.  
  412.             This feature may be useful for backups or, for example,
  413.             when you posted a multivolume archive to a newsgroup
  414.             and a part of subscribers did not receive some of the files.
  415.             Reposting recovery volumes instead of usual volumes
  416.             may reduce the total number of files to repost.
  417.  
  418.             Each recovery volume is able to reconstruct one missing
  419.             or damaged RAR volume. For example, if you have 30 volumes
  420.             and 3 recovery volumes, you are able to reconstruct any
  421.             3 missing volumes. If the number of .rev files is less than
  422.             the number of missing volumes, reconstructing is impossible.
  423.             The total number of usual and recovery volumes must not
  424.             exceed 255.
  425.  
  426.             Original RAR volumes must not be modified after creating
  427.             recovery volumes. Recovery algorithm uses data stored both
  428.             in REV files and in RAR volumes to rebuild missing RAR volumes.
  429.             So if you modify RAR volumes, for example, lock them, after
  430.             creating REV files, recovery process will fail.
  431.  
  432.             The optional <N> parameter specifies a number of recovery
  433.             volumes to create and must be less than the total number
  434.             of RAR volumes in the set. You may also append a percent
  435.             character to this parameter, in such case the number of
  436.             creating .rev files will be equal to this percent taken
  437.             from the total number of RAR volumes. For example:
  438.  
  439.             rar rv15% data.part01.rar
  440.  
  441.             RAR reconstructs missing and damaged volumes either when
  442.             using 'rc' command or automatically, if it cannot locate
  443.             the next volume and finds the required number of .rev files
  444.             when unpacking.
  445.  
  446.             Original copies of damaged volumes are renamed to *.bad
  447.             before reconstruction. For example, volname.part03.rar
  448.             will be renamed to volname.part03.rar.bad.
  449.             
  450.  
  451.     s[name] Convert archive to SFX. The archive is merged with a SFX module
  452.             (using a module in file default.sfx or specified in the switch).
  453.             In the Windows version default.sfx should be placed in the
  454.             same directory as the rar.exe, in Unix - in the user's
  455.             home directory, in /usr/lib or /usr/local/lib.
  456.  
  457.     s-      Remove SFX module from the already existing SFX archive.
  458.             RAR creates a new archive without SFX module, the original
  459.             SFX archive is not deleted.
  460.  
  461.     t       Test archive files. This command performs a dummy file
  462.             extraction, writing nothing to the output stream, in order to
  463.             validate the specified file(s).
  464.  
  465.             Examples:
  466.  
  467.             Test archives in current directory:
  468.  
  469.             rar t *
  470.  
  471.             or for Unix:
  472.  
  473.             rar t '*'
  474.  
  475.             User may test archives in all sub-directories, starting
  476.             with the current path:
  477.  
  478.             rar t -r *
  479.  
  480.             or for Unix:
  481.  
  482.             rar t -r '*'
  483.  
  484.  
  485.     u       Update files in archive. Adds files not yet in the archive
  486.             and updates files that have been changed since they were packed
  487.             into the archive.
  488.  
  489.  
  490.     v[t,b]  Verbosely list the contents of archive [technical].
  491.             Files are listed using the format: full pathname, file comment,
  492.             original and compressed size, compression ratio, last update
  493.             date and time, attributes, CRC, compression method and minimum
  494.             RAR version required to extract. Optional technical information
  495.             (host OS, solid flag and old file version flag) is displayed
  496.             when 't' modifier is used. Modifier 'b' forces RAR to output
  497.             only bare file names without any additional information.
  498.  
  499.             To list the contents of all archive volumes, use an asterisk
  500.             ('*') in place of the archive file extension or use the '-v'
  501.             switch.
  502.  
  503.             Example:
  504.  
  505.             1) list contents of system.rar archive (technical mode)
  506.                and redirect output to file techlist.lst
  507.  
  508.                rar vt system >techlist.lst
  509.  
  510.             2) list contents of tutorial.rar archive (bare file names mode)
  511.  
  512.                rar vb tutorial
  513.  
  514.  
  515.     x       Extract files with full path.
  516.  
  517.             Example:
  518.  
  519.             rar x -av- -c- dime 10cents.txt
  520.  
  521.             extract specified file to current path. AV check and comment
  522.             show are disabled.
  523.  
  524.  
  525.     Switches (used in conjunction with a command):
  526.  
  527.  
  528.     -?      Display help on commands and switches. The same as when none
  529.             or an illegal command line option is entered.
  530.  
  531.  
  532.     --      Stop switches scanning
  533.  
  534.             This switch tells to RAR that there are no more switches
  535.             in the command line. It could be useful, if either archive
  536.             or file name starts from '-' character. Without '--' switch
  537.             such a name would be treated as a switch.
  538.  
  539.             Example:
  540.  
  541.             add all files from the current directory to the solid archive
  542.             '-StrangeName'
  543.  
  544.             RAR a -s -- -StrangeName
  545.  
  546.     -ac     Clear Archive attribute after compression or extraction
  547.             (Windows version only).
  548.  
  549.  
  550.     -ad     Append archive name to destination path.
  551.  
  552.             This option may be useful when unpacking a group of archives.
  553.             By default RAR places files from all archives in the same
  554.             directory, but this switch creates a separate directory
  555.             for files unpacked from each archive.
  556.  
  557.             Example:
  558.  
  559.             rar x -ad *.rar data\
  560.  
  561.             RAR will create subdirectories below 'data' for every unpacking
  562.             archive.
  563.  
  564.  
  565.     -ag[format]
  566.             Generate archive name using the current date and time.
  567.  
  568.             Appends the current date string to an archive name when
  569.             creating an archive. Useful for daily backups.
  570.  
  571.             Format of the appending string is defined by the optional
  572.             "format" parameter or by "YYYYMMDDHHMMSS" if this parameter
  573.             is absent. The format string may include the following
  574.             characters:
  575.  
  576.             Y   - year
  577.             M   - month
  578.             MMM - month name as text string (Jan, Feb, etc.)
  579.             W   - a week number (a week starts with Monday)
  580.             A   - day of week number (Monday is 1, Sunday - 7)
  581.             D   - day of month
  582.             E   - day of year
  583.             H   - hours
  584.             M   - minutes (treated as minutes if encountered after hours)
  585.             S   - seconds
  586.             N   - archive number. RAR searches for already existing archive
  587.                   with generated name and if found, increments the archive
  588.                   number until generating a unique name.
  589.  
  590.             Each of format string characters listed above represents only
  591.             one character added to archive name. For example, use WW for
  592.             two digit week number or YYYY to define four digit year.
  593.  
  594.             If the first character in the format string is '+', positions
  595.             of the date string and base archive name are exchanged,
  596.             so a date will precede an archive name.
  597.  
  598.             The format string may contain optional text enclosed in '{'
  599.             and '}' characters. This text is inserted into archive name.
  600.  
  601.             All other characters are added to an archive name without
  602.             changes.
  603.  
  604.             If you need to update an already existing archive, be careful
  605.             with -ag switch. Depending on the format string and time passed
  606.             since previous -ag use, generated and existing archive names
  607.             may mismatch. In this case RAR will create a new archive
  608.             instead of updating the already existing.
  609.  
  610.  
  611.             Examples:
  612.  
  613.             1) use the default YYYYMMDDHHMMSS format
  614.  
  615.                rar a -ag backup
  616.  
  617.             2) use DD-MMM-YY format
  618.  
  619.                rar a -agDD-MMM-YY backup
  620.  
  621.             3) use YYYYMMDDHHMM format, place date before 'backup'
  622.  
  623.                rar a -ag+YYYYMMDDHHMM backup
  624.  
  625.             4) use YYYY-WW-A format, include fields description
  626.  
  627.                rar a -agYYYY{year}-WW{week}-A{wday} backup
  628.  
  629.             5) use YYYYMMDD and the archive number. It allows to generate
  630.                unique names even when YYYYMMDD format mask used more than
  631.                once in the same day
  632.  
  633.                rar a -agYYYYMMDD-NN backup
  634.  
  635.  
  636.     -ao     Add files with Archive attribute set
  637.             (Windows version only).
  638.  
  639.             Example:
  640.  
  641.             add all disk C: files with Archive attribute set
  642.             to the 'f:backup' and clear files Archive attribute
  643.  
  644.             rar a -r -ac -ao f:backup c:\*.*
  645.  
  646.  
  647.     -ap     Set path inside archive. This path is merged to file
  648.             names when adding files to an archive and removed
  649.             from file names when extracting.
  650.  
  651.             For example, if you wish to add the file 'readme.txt'
  652.             to the directory 'DOCS\ENG' of archive 'release',
  653.             you may run:
  654.  
  655.             rar a -apDOCS\ENG release readme.txt
  656.  
  657.             or to extract 'ENG' to the current directory:
  658.  
  659.             rar x -apDOCS release DOCS\ENG\*.*
  660.  
  661.  
  662.     -as     Synchronize archive contents
  663.  
  664.             If this switch is used when archiving, those archived files
  665.             which are not present in the list of the currently added
  666.             files, will be deleted from the archive. It is convenient to
  667.             use this switch in combination with -u (update) to synchronize
  668.             contents of an archive and an archiving directory.
  669.  
  670.             For example, after the command:
  671.  
  672.             rar a -u -as backup sources\*.cpp
  673.  
  674.             the archive 'backup.rar' will contain only *.cpp files
  675.             from directory 'sources', all other files will be deleted
  676.             from the archive. It looks similar to creating a new archive,
  677.             but with one important exception: if no files are modified
  678.             since the last backup, the operation is performed much faster
  679.             than the creation of a new archive.
  680.  
  681.  
  682.     -av     Put authenticity verification (registered versions only).
  683.             RAR will put, in every new and updated archive, information
  684.             concerning the creator, last update time and archive name.
  685.  
  686.             If an archive, containing authenticity verification, is being
  687.             modified and this switch is not specified, the authenticity
  688.             verification information will be removed.
  689.  
  690.             When extracting, testing, listing or updating an archive with
  691.             the '-av' switch, RAR will perform integrity validation and
  692.             display the message:
  693.  
  694.               Verifying authenticity information ...
  695.  
  696.             In the case of successful authenticity verification, the message
  697.             'Ok', creator name and last update information will be
  698.             displayed. In the case of authenticity verification failure, the
  699.             message 'FAILED' will be displayed.
  700.  
  701.             The Authenticity Verification feature, '-av,' is recommended for
  702.             use with archives in a software distribution environment.
  703.  
  704.             In order to enable the Authenticity verification feature, the
  705.             program MUST be registered. Please contact your local
  706.             distribution site or the world-wide distribution center.
  707.  
  708.  
  709.     -av-    Disable authenticity verification checking or adding.
  710.  
  711.  
  712.     -cfg-   Ignore configuration file and RAR environment variable.
  713.  
  714.  
  715.     -cl     Convert file names to lower case.
  716.  
  717.  
  718.     -cu     Convert file names to upper case.
  719.  
  720.  
  721.     -c-     Disable comments show.
  722.  
  723.  
  724.     -df     Delete files after archiving
  725.  
  726.             Move files to archive. This switch in combination with
  727.             the command "A" performs the same action as the command "M".
  728.            
  729.  
  730.     -dh     Open shared files
  731.  
  732.             Allows to process files opened by other applications
  733.             for writing.
  734.  
  735.             This switch helps if an application allowed read access
  736.             to file, but if all types of file access are prohibited,
  737.             the file open operation will still fail.
  738.  
  739.             This option could be dangerous, because it allows
  740.             to archive a file, which at the same time is modified
  741.             by another application, so use it carefully.
  742.  
  743.  
  744.     -ds     Do not sort files while adding to a solid archive.
  745.  
  746.  
  747.     -ed     Do not add empty directories
  748.  
  749.             This switch indicates that directory records are not to be
  750.             stored in the created archive. When extracting such archives,
  751.             RAR creates non-empty directories basing on paths of files
  752.             contained in them. Information about empty directories is
  753.             lost. All attributes of non-empty directories except a name
  754.             (access rights, streams, etc.) will be lost as well, so use
  755.             this switch only if you do not need to preserve such information.
  756.  
  757.             If -ed is used with 'm' command or -df switch, RAR will not
  758.             remove empty directories.
  759.  
  760.  
  761.     -ee     Do not process extended attributes
  762.  
  763.             Disables saving and restoring extended file attributes.
  764.             Only for OS/2 versions.
  765.  
  766.  
  767.     -en     Do not add "end of archive" block
  768.  
  769.             By default, RAR adds an "end of archive" block to the end of
  770.             a new or updated archive. It allows to skip external data like
  771.             digital signatures safely, but in some special cases it may be
  772.             useful to disable this feature. For example, if an archive
  773.             is transferred between two systems via an unreliable link and
  774.             at the same time a sender adds new files to it, it may be
  775.             important to be sure that the already received file part will
  776.             not be modified on the other end between transfer sessions.
  777.  
  778.             This switch cannot be used with volumes, because the end
  779.             of archive block contains information important for correct
  780.             volume processing. 
  781.  
  782.  
  783.     -ep     Exclude paths from names. This switch enables files to be added
  784.             to an archive without including the path information. This
  785.             could, of course, result in multiple files existing in the
  786.             archive with the same name.
  787.  
  788.  
  789.     -ep1    Exclude base dir from names. Do not store the path entered in
  790.             the command line.
  791.  
  792.             Example:
  793.  
  794.             all files and directories from the directory tmp will be added
  795.             to the archive 'test', but the path in archived names will not
  796.             include 'tmp\'
  797.  
  798.             rar a -ep1 -r test tmp\*
  799.  
  800.             This is equivalent to the commands:
  801.  
  802.             cd tmp
  803.             rar a -r ..\test
  804.             cd ..
  805.  
  806.  
  807.     -ep2    Expand paths to full. Store full file paths (except a drive
  808.             letter and leading path separator) when archiving.
  809.     
  810.  
  811.     -ep3    Expand paths to full including the drive letter.
  812.             Win32 version only.
  813.  
  814.             This switch stores full file paths including the drive
  815.             letter if used when archiving. Drive separators (colons)
  816.             are replaced by underscore characters.
  817.  
  818.             If you use -ep3 when extracting, it will change
  819.             underscores back to colons and create unpacked files
  820.             in their original directories and disks. If the user
  821.             also specified a destination path, it will be ignored.
  822.  
  823.             This switch can help to backup several disks to the same
  824.             archive. For example, you may run:
  825.  
  826.             rar a -ep3 -r backup.rar c:\ d:\ e:\
  827.  
  828.             to create backup and:
  829.  
  830.             rar x -ep3 backup.rar
  831.  
  832.             to restore it.
  833.  
  834.             But be cautious and use -ep3 only if you are sure that
  835.             extracting archive does not contain any malicious files.
  836.             In other words, use it if you have created an archive yourself
  837.             or completely trust its author. This switch allows to overwrite
  838.             any file in any location on your computer including important
  839.             system files and should normally be used only for the purpose
  840.             of backup and restore.
  841.  
  842.  
  843.     -e[+]<attr>
  844.             Specifies file exclude or include attributes mask.
  845.  
  846.             <attr> is a number in the decimal, octal (with leading '0')
  847.             or hex (with leading '0x') format.
  848.  
  849.             By default, without '+' sign before <attr>, this switch
  850.             defines the exclude mask. So if result of bitwise AND between
  851.             <attr> and file attributes is nonzero, file would not be
  852.             processed.
  853.  
  854.             If '+' sign is present, it specifies the include mask.
  855.             Only those files which have at least one attribute specified
  856.             in the mask will be processed.
  857.  
  858.             In Windows version is also possible to use symbols D, S, H,
  859.             A and R instead of a digital mask to denote directories
  860.             and files with system, hidden, archive and read-only attributes.
  861.             The order in which the attributes are given is not significant.
  862.             Unix version supports D and V symbols to define directory
  863.             and device attributes.
  864.  
  865.             It is allowed to specify both -e<attr> and -e+<attr>
  866.             in the same command line.
  867.  
  868.             Examples:
  869.  
  870.             1) archive only directory names without their contents
  871.  
  872.                rar a -r -e+d dirs
  873.  
  874.             2) do not compress system and hidden files:
  875.  
  876.                rar a -esh files
  877.  
  878.             3) do not extract read-only files:
  879.  
  880.                rar x -er files
  881.  
  882.  
  883.     -f      Freshen files. May be used with archive extraction or creation.
  884.             The command string "a -f" is equivalent to the command 'f', you
  885.             could also use the switch '-f' with the commands 'm' or 'mf'. If
  886.             the switch '-f' is used with the commands 'x' or 'e', then only
  887.             old files would be replaced with new versions extracted from the
  888.             archive.
  889.  
  890.  
  891.     -hp[p]  Encrypt both file data and headers.
  892.  
  893.             This switch is similar to -p[p], but switch -p encrypts
  894.             only file data and leaves other information like file names
  895.             visible. This switch encrypts all sensitive archive areas
  896.             including file data, file names, sizes, attributes, comments
  897.             and other blocks, so it provides a higher security level.
  898.             Without a password it is impossible to view even the list of
  899.             files in archive encrypted with -hp.
  900.  
  901.             Example:
  902.  
  903.             rar a -hpfGzq5yKw secret report.txt
  904.  
  905.             will add the file report.txt to the encrypted archive
  906.             secret.rar using the password 'fGzq5yKw'
  907.  
  908.  
  909.     -id[c,d,p,q]
  910.             Disable messages.
  911.  
  912.             Switch -idc disables the copyright string.
  913.  
  914.             Switch -idd disables "Done" string at the end of operation.
  915.  
  916.             Switch -idp disables the percentage indicator.
  917.  
  918.             Switch -idq turns on the quiet mode, so only error messages
  919.             and questions are displayed.
  920.  
  921.             It is allowed to use several modifiers at once,
  922.             so switch -idcdp is correct.
  923.  
  924.  
  925.     -ieml[.][addr]
  926.             Send archive by email. Win32 version only.
  927.  
  928.             Attach an archive created or updated by the add command
  929.             to email message. You need to have a MAPI compliant email
  930.             client to use this switch (most modern email programs
  931.             support MAPI interface).
  932.  
  933.             You may enter a destination email address directly
  934.             in the switch or leave it blank. In the latter case you
  935.             will be asked for it by your email program. It is possible
  936.             to specify several addresses separated by commas or semicolons.
  937.  
  938.             If you append a dot character to -ieml, an archive will be
  939.             deleted after it was successfully attached to an email.
  940.             If the switch is used when creating a multivolume archive,
  941.             every volume is attached to a separate email message.
  942.  
  943.  
  944.     -ierr   Send all messages to stderr.
  945.  
  946.  
  947.     -ilog[name]
  948.             Log errors to file (registered version only).
  949.  
  950.             Write error messages to rar.log file. If optional 'name'
  951.             parameter is not specified, the log file is created
  952.             using the following defaults:
  953.  
  954.             Unix:    .rarlog file in the user's home directory;
  955.             Windows: rar.log file in %APPDATA%\WinRAR directory;
  956.             DOS:     rar.log file in the same directory as the rar32.exe.
  957.  
  958.             If 'name' parameter includes a file name without path,
  959.             RAR will create the log file in default directory from
  960.             the list above using the specified name. Include both path
  961.             and name to 'name' parameter if you wish to change
  962.             the location of log file.
  963.  
  964.             Example:
  965.  
  966.             rar a -ilogc:\log\backup.log backup d:\docs
  967.  
  968.             will create c:\log\backup.log log file in case of errors.
  969.  
  970.  
  971.     -inul   Disable all messages.
  972.  
  973.  
  974.     -ioff   Turn PC off after completing an operation. The hardware must
  975.             support the power off feature. Win32 version only.
  976.  
  977.  
  978.     -isnd   Enable sound.
  979.  
  980.  
  981.     -k      Lock archive. Any command which intends to change the archive
  982.             will be ignored.
  983.  
  984.  
  985.     -kb     Keep broken extracted files.
  986.  
  987.             RAR, by default, deletes files with CRC errors after
  988.             extraction. The switch -kb specifies that files with
  989.             CRC errors should not be deleted.
  990.  
  991.  
  992.     -m<n>   Set compression method:
  993.  
  994.        -m0   store     do not compress file when adding to archive
  995.        -m1   fastest   use fastest method (less compressive)
  996.        -m2   fast      use fast compression method
  997.        -m3   normal    use normal (default) compression method
  998.        -m4   good      use good compression method (more
  999.                        compressive, but slower)
  1000.        -m5   best      use best compression method (slightly more
  1001.                        compressive, but slowest)
  1002.  
  1003.             If this switch is not specified, RAR uses -m3 method
  1004.             (normal compression).
  1005.  
  1006.             By default, RAR uses only the general compression
  1007.             algorithm in -m1 and -m2 methods, advanced algorithms
  1008.             like audio and true color processing are enabled
  1009.             only in -m3..-m5 modes, the advanced text compression
  1010.             is activated only in -m4..-m5. This default can be
  1011.             overridden using -mc switch.
  1012.  
  1013.  
  1014.     -mc<par>
  1015.             Set advanced compression parameters.
  1016.  
  1017.             This switch is intended mainly for benchmarking and
  1018.             experiments. In the real environment it is usually better
  1019.             to allow RAR to select optimal parameters automatically.
  1020.             Please note that improper use of this switch may lead
  1021.             to very serious performance and compression loss, so use
  1022.             it only if you clearly understand what you do.
  1023.  
  1024.             It has the following syntax:
  1025.  
  1026.             -mc[param1][:param2][module][+ or -]
  1027.  
  1028.             where <module> is the one character field denoting a part
  1029.             of the compression algorithm, which has to be configured.
  1030.  
  1031.             It may have the following values:
  1032.  
  1033.               A       - audio compression;
  1034.               C       - true color (RGB) data compression;
  1035.               D       - delta compression;
  1036.               E       - 32-bit x86 executables compression;
  1037.               I       - 64-bit Intel Itanium executables compression;
  1038.               T       - text compression.
  1039.  
  1040.             '+' sign at the end of switch applies the selected algorithm
  1041.             module to all processed data, '-' disables the module at all.
  1042.             If no sign is specified, RAR will choose modules automatically,
  1043.             based on data and the current compression method.
  1044.  
  1045.             Switch -mc- disables all optional modules and allows only
  1046.             the general compression algorithm.
  1047.  
  1048.             <Param1> and <Param2> are module dependent parameters
  1049.             described below.
  1050.  
  1051.             Audio compression, delta compression:
  1052.  
  1053.             <Param1> is a number of byte channels (can be 1 - 31).
  1054.             RAR splits multibyte channels to bytes, for example,
  1055.             two 16-bit audio channels are considered by RAR as four
  1056.             channels one byte each.
  1057.  
  1058.             <Param2> is ignored.
  1059.  
  1060.  
  1061.             32-bit x86 Intel executables compression,
  1062.             64-bit Intel Itanium executables compression,
  1063.             true color (RGB) data compression:
  1064.  
  1065.             <Param1> and <Param2> are ignored.
  1066.  
  1067.  
  1068.             Text compression: 
  1069.  
  1070.             <Param1> is the order of PPM algorithm (can be 2 - 63).
  1071.             Usually a higher value slightly increases the compression ratio
  1072.             of redundant data, but only if enough memory is available
  1073.             to PPM. In case of lack of memory the result may be negative.
  1074.             Higher order values decrease both compression and decompression
  1075.             speed.
  1076.  
  1077.             <Param2> is memory in megabytes allocated for PPM (1-128).
  1078.             Higher values may increase the compression ratio, but note
  1079.             that PPM uses the equal memory size both to compress and
  1080.             decompress, so if you allocate too much memory when creating
  1081.             an archive, other people may have problems when decompressing
  1082.             it on a computer with less memory installed. Decompression
  1083.             will be still possible using virtual memory, but it may
  1084.             become very slow.
  1085.  
  1086.  
  1087.             Examples:
  1088.  
  1089.             1) switch -mc1a+ forces use of 8-bit mono audio compression
  1090.             for all data.
  1091.  
  1092.             2) switch -mc10:40t+ forces use of text compression
  1093.             algorithm for all data, sets the compression order to 10
  1094.             and allocates 40 MB memory.
  1095.  
  1096.             3) switch -mc12t sets the text compression order to 12,
  1097.             when the text compression is used, but leaves to RAR to
  1098.             decide when to use it.
  1099.  
  1100.             4) switches -mct- -mcd- disable text and delta compression.
  1101.  
  1102.  
  1103.     -md<n>  Select dictionary size <n> in KB. Must be 64, 128, 256, 512,
  1104.             1024, 2048 or 4096 or a letter 'a', 'b', 'c', 'd', 'e', 'f', 'g'
  1105.             respectively.
  1106.  
  1107.             The sliding dictionary is a special memory area used by the
  1108.             compression algorithm. If the size of the file being compressed
  1109.             (or the total files size in the case of a solid archive) is
  1110.             greater than the dictionary size, then increasing the dictionary
  1111.             size will generally increase compression ratio, decrease packing
  1112.             speed and increase memory requirements.
  1113.  
  1114.             RAR can reduce the dictionary size if it is significantly
  1115.             larger than the size of the source data. It helps to reduce
  1116.             memory requirements without decreasing compression.
  1117.  
  1118.             Default sliding dictionary size is 4096 KB.
  1119.  
  1120.             Example:
  1121.  
  1122.             RAR a -s -mdd sources *.asm
  1123.                 or
  1124.             RAR a -s -md512 sources *.asm
  1125.  
  1126.             Will create a solid archive using a 512 KB dictionary.
  1127.  
  1128.  
  1129.     -ms[list]
  1130.             Specify file types to store.
  1131.  
  1132.             Specify file types, which will be stored without compression.
  1133.             This switch may be used to store already compressed files,
  1134.             which helps to increase archiving speed without noticeable
  1135.             loss in the compression ratio.
  1136.  
  1137.             Optional <list> parameter defines the list of file extensions
  1138.             separated by semicolons. For example, -msrar;zip;jpg will
  1139.             force RAR to store without compression all RAR and ZIP
  1140.             archives and JPG images. It is also allowed to specify wildcard
  1141.             file masks in the list, so -ms*.rar;*.zip;*.jpg will work too.
  1142.  
  1143.             If <list> is not specified, -ms switch will use the default
  1144.             set of extensions, which includes the following file types:
  1145.  
  1146.             7z, ace, arj, bz2, cab, gz, jpeg, jpg, lha, lzh, mp3,
  1147.             rar, taz, tgz, z, zip
  1148.  
  1149.  
  1150.     -mt<threads>
  1151.             Set the number of threads. Available in Windows version only.
  1152.  
  1153.             <threads> parameter can take values from 0 to 16.
  1154.             It defines the recommended number of active threads
  1155.             for compression algorithm. If it is greater than 0,
  1156.             RAR will use the multithreaded version of compression
  1157.             algorithm providing higher speed on multiprocessor
  1158.             architectures. Real number of active threads can differ
  1159.             from the specified.
  1160.  
  1161.             If <threads> is zero, RAR will use the single threaded
  1162.             compression algorithm.
  1163.  
  1164.             Change of <threads> parameter slightly affects the compression
  1165.             ratio, so archives created with different -mt switches
  1166.             will not be exactly the same even if all other compression
  1167.             settings are equal.
  1168.  
  1169.             If -mt switch is not specified, RAR will try to detect
  1170.             the number of available processors and select the optimal
  1171.             number of threads automatically.
  1172.  
  1173.  
  1174.     -n<f>   Include only the specified file <f>. Wildcards may be used
  1175.             both in the name and file parts of file mask. You may specify
  1176.             the switch '-n' several times.
  1177.  
  1178.             This switch does not replace usual file masks, which still
  1179.             need to be entered in the command line. It is an additional
  1180.             filter limiting processed files only to those matching
  1181.             the include mask specified in -n switch. It can help to
  1182.             reduce the command line length sometimes.
  1183.  
  1184.             For example, if you need to compress all *.txt and *.lst
  1185.             files in directories Project and Info, you can enter:
  1186.  
  1187.             rar a -r text Project\*.txt Project\*.lst Info\*.txt Info\*.lst
  1188.  
  1189.             or using the switch -n:
  1190.  
  1191.             rar a -r -n*.txt -n*.lst text Project Info
  1192.  
  1193.  
  1194.     -n@<lf> Include files using the specified list file.
  1195.  
  1196.             Similar to -n<f> switch, but reads include masks from
  1197.             the list file. If you use -n@ without the list file name
  1198.             parameter, it will read file names from stdin.
  1199.  
  1200.             Example:
  1201.  
  1202.             rar a -r -n@inclist.txt text Project Info
  1203.  
  1204.  
  1205.     -oc     Set NTFS Compressed attribute. Win32 version only.
  1206.  
  1207.             This switch allows to restore NTFS Compressed attribute
  1208.             when extracting files. RAR saves Compressed file attributes
  1209.             when creating an archive, but does not restore them unless
  1210.             -oc switch is specified.
  1211.  
  1212.  
  1213.     -ol     Save symbolic links as the link instead of the file.
  1214.             Unix version only.
  1215.  
  1216.  
  1217.     -or     Rename extracted files automatically if file with the same name
  1218.             already exists. Renamed file will get the name like
  1219.             'filename(N).txt', where 'filename.txt' is the original file
  1220.             name and 'N' is a number starting from 1 and incrementing
  1221.             if file exists.
  1222.  
  1223.  
  1224.     -os     Save NTFS streams. Win32 version only.
  1225.  
  1226.             This switch has meaning only for NTFS file system and allows
  1227.             to save alternative data streams associated with a file.
  1228.             It is especially important in Windows 2000, XP and newer,
  1229.             which use streams to keep some file dependent information
  1230.             like file descriptions. If you use RAR to backup your
  1231.             NTFS disks, it is recommended to specify this switch.
  1232.  
  1233.  
  1234.     -ow     Use this switch when archiving to save file security
  1235.             information and when extracting to restore it.
  1236.  
  1237.             Unix RAR version saves file owner and group when using
  1238.             this switch.
  1239.  
  1240.             Win32 version stores owner, group, file permissions and
  1241.             audit information, but only if you have necessary privileges
  1242.             to read them. Note that only NTFS file system supports
  1243.             file based security under Windows.
  1244.  
  1245.     -o+     Overwrite existing files.
  1246.  
  1247.  
  1248.     -o-     Do not overwrite existing files.
  1249.  
  1250.  
  1251.     -p[p]   Encrypt files with the string <p> as password while archiving.
  1252.             The password is case-sensitive. If you omit the password on the
  1253.             command line, you will be prompted with message "Enter password".
  1254.  
  1255.             Example:
  1256.  
  1257.             rar a -pmyhoney secret1 *.txt
  1258.  
  1259.             add files *.txt and encrypt them with password "myhoney".
  1260.  
  1261.  
  1262.     -p-     Do not query password
  1263.  
  1264.  
  1265.     -r      Recurse subdirectories. May be used with commands:
  1266.             a, u, f, m, x, e, t, p, v, l, c, cf and s.
  1267.  
  1268.             When used with the commands 'a', 'u', 'f', 'm' will process
  1269.             files in all sub-directories as well as the current working
  1270.             directory.
  1271.  
  1272.             When used with the commands x, e, t, p, v, l, c, cf or s will
  1273.             process all archives in sub-directories as well as the current
  1274.             working directory.
  1275.  
  1276.  
  1277.     -r0     Similar to -r, but when used with the commands 'a', 'u', 'f',
  1278.             'm' will recurse subdirectories only for those names, which
  1279.             include wildcard characters '*' and '?'
  1280.  
  1281.  
  1282.     -ri<p>[:<s>]
  1283.             Set priority and sleep time. Available only in RAR for Windows.
  1284.             This switch regulates system load by RAR in multitasking
  1285.             environment. Possible task priority <p> values are 0 - 15.
  1286.  
  1287.             If <p> is 0, RAR uses the default task priority.
  1288.             <p> equal to 1 sets the lowest possible priority,
  1289.             15 - the highest possible.
  1290.  
  1291.             Sleep time <s> is a value from 0 to 1000 (milliseconds).
  1292.             This is a period of time that RAR gives back to the system
  1293.             after every read or write operation while compressing
  1294.             or extracting. Non-zero <s> may be useful if you need to reduce
  1295.             system load even more than can be achieved with <p> parameter.
  1296.  
  1297.             Example:
  1298.  
  1299.             execute RAR with default priority and 10 ms sleep time:
  1300.  
  1301.             rar a -ri0:10 backup *.*
  1302.  
  1303.  
  1304.     -rr[N]  Add a data recovery record. This switch is used when creating
  1305.             or modifying an archive to add a data recovery record to
  1306.             the archive. See the 'rr[N]' command description for details.
  1307.  
  1308.  
  1309.     -rv[N]  Create recovery volumes. This switch is used when creating
  1310.             a multivolume archive to generate recovery volumes.
  1311.             See the 'rv[N]' command description for details.
  1312.  
  1313.  
  1314.     -s      Create solid archive. Solid is a special archive type. Please
  1315.             refer to the appendix "Glossary" for further information.
  1316.  
  1317.             Example:
  1318.  
  1319.             create solid archive sources.rar with 512 KB dictionary,
  1320.             recursing all directories, starting with the current directory.
  1321.             Add only .asm files:
  1322.  
  1323.             rar a -s -md512 sources.rar *.asm -r
  1324.  
  1325.  
  1326.     -s<N>   Create solid groups using file count
  1327.  
  1328.             Similar to -s, but reset solid statistics after compressing
  1329.             <N> files. Usually decreases compression, but also
  1330.             decreases losses in case of solid archive damages.
  1331.  
  1332.  
  1333.     -sc<charset>[objects]
  1334.             Specify the character set for list files and archive
  1335.             comment files.
  1336.  
  1337.             'Charset' parameter is mandatory and can have one
  1338.             of the following values:
  1339.  
  1340.               U - Unicode;
  1341.               A - ANSI (Windows) encoding. Windows version only;
  1342.               O - OEM (DOS) encoding. Windows version only.
  1343.  
  1344.             Files in Unicode format must have FFFE or FEFF Unicode
  1345.             character in the beginning, otherwise RAR will ignore
  1346.             this switch and process the file as ASCII text.
  1347.  
  1348.             'Objects' parameter is optional and can have one of
  1349.             the following values:
  1350.  
  1351.               L - list files;
  1352.               C - comment files.
  1353.  
  1354.             It is allowed to specify more than one object, for example,
  1355.             -scolc. If 'objects' parameter is missing, 'charset' is applied
  1356.             to all objects.
  1357.  
  1358.             This switch allows to specify the character set for files
  1359.             in -z[file] switch, list files and comment files written by
  1360.             "cw" command.
  1361.  
  1362.             Examples:
  1363.  
  1364.             1) rar a -scol data @list
  1365.  
  1366.             Read names contained in 'list' using OEM encoding.
  1367.  
  1368.             2) rar c -scuc -zcomment.txt data
  1369.  
  1370.             Read comment.txt as Unicode file.
  1371.  
  1372.             3) rar cw -scuc data comment.txt
  1373.  
  1374.             Write comment.txt as Unicode file.
  1375.  
  1376.  
  1377.     -se     Create solid groups using extension
  1378.  
  1379.             Similar to -s, but reset solid statistics if file extension
  1380.             is changed. Usually decreases compression, but also
  1381.             decreases losses from solid archive damages.
  1382.  
  1383.  
  1384.     -sfx[name]
  1385.             Create SFX archives. If this switch is used when creating a new
  1386.             archive, a Self-Extracting archive (using a module in file
  1387.             default.sfx or specified in the switch) would be created.
  1388.             In the Windows version default.sfx should be placed in the
  1389.             same directory as the rar.exe, in Unix - in the user's
  1390.             home directory, in /usr/lib or /usr/local/lib.
  1391.  
  1392.             Example:
  1393.  
  1394.             rar a -sfxwincon.sfx myinst
  1395.  
  1396.             create SelF-eXtracting (SFX) archive using wincon.sfx
  1397.             SFX-module.
  1398.  
  1399.  
  1400.     -si[name]
  1401.             Read data from stdin (standard input), when creating
  1402.             an archive. Optional 'name' parameter allows to specify
  1403.             a file name of compressed stdin data in the created
  1404.             archive. If this parameter is missing, the name will be
  1405.             set to 'stdin'. This switch cannot be used with -v.
  1406.  
  1407.             Example:
  1408.  
  1409.             type Tree.Far | rar a -siTree.Far tree.rar
  1410.  
  1411.             will compress 'type Tree.Far' output as 'Tree.Far' file.
  1412.  
  1413.  
  1414.     -sl<size>
  1415.             Process only those files, which size is less than
  1416.             specified in <size> parameter of this switch.
  1417.             Parameter <size> must be specified in bytes.
  1418.  
  1419.  
  1420.     -sm<size>
  1421.             Process only those files, which size is more than
  1422.             specified in <size> parameter of this switch.
  1423.             Parameter <size> must be specified in bytes.
  1424.  
  1425.  
  1426.     -sv     Create independent solid volumes
  1427.  
  1428.             By default RAR tries to reset solid statistics as soon
  1429.             as possible when starting a new volume, but only 
  1430.             if enough data was packed after a previous reset
  1431.             (at least a few megabytes).
  1432.  
  1433.             This switch forces RAR to ignore packed data size and attempt
  1434.             to reset statistics for volumes of any size. It decreases
  1435.             compression, but increases chances to extract a part of data 
  1436.             if one of several solid volumes in a volume set was lost
  1437.             or damaged.
  1438.  
  1439.             Note that sometimes RAR cannot reset statistics even
  1440.             using this switch. For example, it cannot be done when 
  1441.             compressing one large file split between several volumes.
  1442.             RAR is able to reset solid statistics only between separate 
  1443.             files, but not inside of single file.
  1444.  
  1445.             Ignored if used when creating a non-volume archive.
  1446.  
  1447.  
  1448.     -sv-    Create dependent solid volumes
  1449.  
  1450.             Disables to reset solid statistics between volumes.
  1451.  
  1452.             It slightly increases compression, but significantly reduces 
  1453.             chances to extract a part of data if one of several solid
  1454.             volumes in a volume set was lost or damaged.
  1455.  
  1456.             Ignored if used when creating a non-volume archive.
  1457.  
  1458.  
  1459.     -s-     Disable solid archiving
  1460.  
  1461.  
  1462.     -t      Test files after archiving. This switch is especially
  1463.             useful in combination with the move command, so files will be
  1464.             deleted only if the archive had been successfully tested.
  1465.  
  1466.  
  1467.     -ta<date>
  1468.             Process only files modified after the specified date.
  1469.  
  1470.             Format of the date string is YYYYMMDDHHMMSS.
  1471.             It is allowed to insert separators like '-' or ':' to
  1472.             the date string and omit trailing fields. For example,
  1473.             the following switch is correct: -ta2001-11-20
  1474.             Internally it will be expanded to -ta20011120000000
  1475.             and treated as "files modified after 0 hour 0 minutes
  1476.             0 seconds of 20 November 2001".
  1477.  
  1478.  
  1479.     -tb<date>
  1480.             Process only files modified before the specified date.
  1481.             Format of the switch is the same as -ta<date>.
  1482.  
  1483.  
  1484.     -tk     Keep original archive date. Prevents RAR from modifying the
  1485.             archive date when changing an archive.
  1486.  
  1487.  
  1488.     -tl     Set archive time to newest file. Forces RAR to set the date of a
  1489.             changed archive to the date of the newest file in the archive.
  1490.  
  1491.  
  1492.     -tn<time>
  1493.             Process files newer than the specified time period. Format
  1494.             of the time string is:
  1495.  
  1496.             [<ndays>d][<nhours>h][<nminutes>m][<nseconds>s]
  1497.  
  1498.             For example, use switch -tn15d to process files newer
  1499.             than 15 days and -tn2h30m to process files newer than
  1500.             2 hours 30 minutes.
  1501.  
  1502.  
  1503.     -to<time>
  1504.             Process files older than the specified time period. Format
  1505.             of the switch is the same as -tn<time>.
  1506.  
  1507.  
  1508.     -ts<m,c,a>[N]
  1509.             Save or restore file time (modification, creation, access).
  1510.  
  1511.             Switch -tsm instructs RAR to save file modification time,
  1512.             -tsc - creation time and tsa - last access time. Optional
  1513.             parameter after the switch is the number between 0 and 4
  1514.             controlling the file time precision. Value '1' enables
  1515.             1 second precision, 2 - 0.0065536 sec, 3 - 0.0000256 sec and
  1516.             4 or '+' enables the maximum NTFS time precision, which is
  1517.             equal to 0.0000001 sec. Value '0' or '-' means that creation
  1518.             and access time are not saved and low (two seconds) precision
  1519.             is used for modification time. Higher precision modes add
  1520.             more data to archive, up to 19 additional bytes per file
  1521.             in case of -tsm4 -tsa4 -tsc4 combination. If no precision
  1522.             is specified, RAR uses '4' (high) value.
  1523.  
  1524.             Default RAR mode is -tsm4 -tsc0 -tsa0, so modification time
  1525.             is stored with the high precision and other times are ignored.
  1526.  
  1527.             It is necessary to specify -tsc and -tsa switches to set
  1528.             creation and access time when unpacking files (precision
  1529.             is irrelevant, but must not be 0). By default RAR sets
  1530.             only the modification time, even if archive contains
  1531.             creation and last access time. Setting the modification
  1532.             time to unpacked files may be also disabled with -tsm-.
  1533.  
  1534.             It is possible to omit the time type letter if you need
  1535.             to apply the switch to all three times. For example,
  1536.             -tsm4 -tsa4 -tsc4 can be replaced by -ts4, -ts+ or -ts.
  1537.             Use -ts- to save only the low precision modification time
  1538.             or to ignore all three file times on unpacking.
  1539.  
  1540.             When creating an archive, RAR automatically reduces
  1541.             the precision if high mode is not supported by the file
  1542.             system. It is not more than 2 seconds on FAT and 1 second
  1543.             in Unix. NTFS time precision is 0.0000001 second.
  1544.  
  1545.             Operating systems limit which time can be set on unpacking.
  1546.             Windows allows to set all three times, Unix - modification
  1547.             and last access, but not creation, DOS supports only
  1548.             the modification time.
  1549.  
  1550.             Examples:
  1551.  
  1552.             1) rar a -ts backup
  1553.  
  1554.             Store all file times with the highest possible precision.
  1555.  
  1556.             2) rar x -tsa backup
  1557.  
  1558.             Restore modification and last access time. Switch -tsm
  1559.             is not required, because RAR uses it by default.
  1560.  
  1561.             3) rar a -tsm1 -tsc1 backup
  1562.  
  1563.             Store low precision modification and creation time.
  1564.             Without -tsm1 RAR would save the high precision modification
  1565.             time.
  1566.  
  1567.  
  1568.     -u      Update files. May be used with archive extraction or creation.
  1569.             The command string "a -u" is equivalent to the command 'u', you
  1570.             could also use the switch '-u' with the commands 'm' or 'mf'. If
  1571.             the switch '-u' is used with the commands 'x' or 'e', then files
  1572.             not present on the disk and files newer than their copies on the
  1573.             disk would extracted from the archive.
  1574.  
  1575.  
  1576.     -v      Create volumes with size autodetection or list all volumes
  1577.  
  1578.             This switch may be used when creating or listing volumes.
  1579.  
  1580.             In the first case it enables volume size autodetection,
  1581.             so new volumes will use all available space on the destination
  1582.             media. It is convenient when creating volumes on removable
  1583.             disks. You may read more about volumes in -v<size> description.
  1584.  
  1585.             In the second case, when this switch is used together with
  1586.             'V' or 'L' command, it forces RAR to list contents of all
  1587.             volumes starting from that specified in the command line.
  1588.             Without this switch RAR displays contents of only one single
  1589.             specified volume.
  1590.  
  1591.  
  1592.     -v<size>[k|b|f|m|M|g|G]
  1593.             Create volumes with size=<size>*1000 [*1024 | *1].
  1594.             By default this switch uses <size> as thousands (1000) of bytes
  1595.             (not 1024 x bytes). You may also enter the size in kilobytes
  1596.             using the symbol 'k', in bytes using the symbol 'b',
  1597.             megabytes - 'm', millions of bytes - 'M', gigabytes - 'g',
  1598.             billions (milliards) of bytes - 'G' or select one of several
  1599.             predefined values using the symbol 'f' following the numerical
  1600.             value. Predefined values can be 360, 720, 1200, 1440 or 2880
  1601.             and replaced with corresponding floppy disk size.
  1602.  
  1603.             If the size is omitted, autodetection will be used.
  1604.  
  1605.             You may specify several -v switches to set different sizes
  1606.             for different volumes. For example:
  1607.  
  1608.               rar a -v100k -v200k -v300k arcname
  1609.  
  1610.             sets 100 KB size for first volume, 200 KB for second
  1611.             and 300 KB for all following volumes.
  1612.  
  1613.             If volumes are created on removable media, then after
  1614.             the creation of the first volume, the user will be prompted
  1615.             with:
  1616.  
  1617.               Create next volume: Yes/No/All
  1618.  
  1619.             At this moment in time, you should change the disks. Answering
  1620.             'A' will cause all volumes to be created without a pause.
  1621.  
  1622.             By default RAR volumes have names like 'volname.partNNN.rar',
  1623.             where NNN is the volume number. Using -vn switch it is 
  1624.             possible to switch to another, extension based naming scheme,
  1625.             where the first volume file in a multi-volume set has
  1626.             the extension .rar, following volumes are numbered from .r00
  1627.             to .r99.
  1628.  
  1629.             When extracting or testing a multi-volume archive you must use
  1630.             only the first volume name. If there is no next volume
  1631.             on the drive and the disk is removable, the user will be
  1632.             prompted with:
  1633.  
  1634.              Insert disk with <next volume name>
  1635.  
  1636.             Insert the disk with the correct volume and press any key.
  1637.  
  1638.             If while extracting, the next volume is not found and volumes
  1639.             are placed on the non-removable disk, RAR will abort with
  1640.             the error message:
  1641.  
  1642.              Cannot find <volume name>
  1643.  
  1644.             Archive volumes may not be modified. The commands 'd', 'f', 'u',
  1645.             's' cannot be used with Multi-volume sets. The command 'a' may
  1646.             be used only for the creation of a new multi-volume sequence.
  1647.  
  1648.             It is possible, although unlikely, that the file size, of a file
  1649.             in a multi-volume set, could be greater than its uncompressed
  1650.             size. This is due to the fact that 'storing' (no compression if
  1651.             size increases) cannot be enabled for multi-volume sets.
  1652.  
  1653.             Archive volumes may be Self-Extracting (SFX). Such an archive
  1654.             should be created using both the '-v' and '-sfx' switches.
  1655.  
  1656.             Example:
  1657.  
  1658.             create archive in volumes of fixed size:
  1659.  
  1660.             rar a -s -v1440 floparch.rar *.*
  1661.  
  1662.             will create solid volumes of size 1440000 bytes.
  1663.  
  1664.  
  1665.     -vd     Erase disk contents before creating volume
  1666.  
  1667.             All files and directories on the target disk will be erased
  1668.             when '-vd' is used.  The switch applies only to removable
  1669.             media, the hard disk cannot be erased using this switch.
  1670.  
  1671.  
  1672.     -ver[n] File version control
  1673.  
  1674.             Forces RAR to keep previous file versions when updating
  1675.             files in the already existing archive. Old versions are
  1676.             renamed to 'filename;n', where 'n' is the version number.
  1677.  
  1678.             By default, when unpacking an archive without the switch
  1679.             -ver, RAR extracts only the last added file version, the name
  1680.             of which does not include a numeric suffix. But if you specify
  1681.             a file name exactly, including a version, it will be also
  1682.             unpacked. For example, 'rar x arcname' will unpack only
  1683.             last versions, when 'rar x arcname file.txt;5' will unpack
  1684.             'file.txt;5', if it is present in the archive.
  1685.  
  1686.             If you specify -ver switch without a parameter when unpacking,
  1687.             RAR will extract all versions of all files that match
  1688.             the entered file mask. In this case a version number is
  1689.             not removed from unpacked file names. You may also extract
  1690.             a concrete file version specifying its number as -ver parameter.
  1691.             It will tell RAR to unpack only this version and remove
  1692.             a version number from file names. For example,
  1693.             'rar x -ver5 arcname' will unpack only 5th file versions.
  1694.  
  1695.             If you specify 'n' parameter when archiving, it will limit
  1696.             the maximum number of file versions stored in the archive.
  1697.             Old file versions exceeding this threshold will be removed.
  1698.  
  1699.  
  1700.     -vn     Use the old style volume naming scheme
  1701.  
  1702.             By default RAR volumes have names like 'volname.partNNN.rar',
  1703.             where NNN is the volume number. Using -vn switch it is 
  1704.             possible to switch to another, extension based naming scheme,
  1705.             where the first volume file in a multi-volume set has
  1706.             the extension .rar, following volumes are numbered from .r00
  1707.             to .r99. It may have sense, if you are going to unpack
  1708.             an archive under the plain MS DOS, which does not allow
  1709.             more than one dot in a file name.
  1710.  
  1711.  
  1712.     -vp     Pause before each volume
  1713.  
  1714.             By default RAR asks for confirmation before creating or 
  1715.             unpacking next volume only for removable drives.
  1716.             This switch forces RAR to ask such confirmation always.
  1717.             It can be useful if disk space is limited and you wish
  1718.             to copy each volume to another media immediately after
  1719.             creation.
  1720.  
  1721.  
  1722.     -w<p>   Assign work directory as <p>. This switch may be used to assign
  1723.             the directory for temporary files.
  1724.  
  1725.  
  1726.     -x<f>   Exclude specified file <f>, wildcards may be used both
  1727.             in the name and file parts of file mask. You may specify
  1728.             the switch '-x' several times.
  1729.  
  1730.             If mask contains wildcards, it applies to current directory
  1731.             and its subdirectories. It is not recursive without wildcards,
  1732.             so if you wish to exclude some "filename" in all directories,
  1733.             you need to specify two masks: "filename" for current directory
  1734.             and "*\filename" for subdirectories. If you know an exact path
  1735.             to file, you can use "path\filename" syntax to exclude only
  1736.             this copy of "filename". If you use -xpath\filename syntax
  1737.             when unpacking an archive, "path" must be a path inside of
  1738.             archive, not a file path on the disk after unpacking.
  1739.  
  1740.  
  1741.             Examples:
  1742.  
  1743.             1) rar a -r -x*.bak -x*.rar rawfiles
  1744.  
  1745.             *.bak and *.rar files will not be added to rawfiles
  1746.  
  1747.             2) rar a -r -x*\temp -x*\temp\* savec c:\*
  1748.  
  1749.             compress all files on the disk c: except temp directories
  1750.             and files inside of temp directories
  1751.  
  1752.             3) rar x -x*.txt docs
  1753.  
  1754.             extract all files except *.txt from docs.rar
  1755.  
  1756.  
  1757.     -x@<lf> Exclude files using the specified list file. If you use -x@
  1758.             without the list file name parameter, it will read file names
  1759.             from stdin.
  1760.  
  1761.             Example:
  1762.  
  1763.             rar a -x@exlist.txt arch *.exe
  1764.  
  1765.  
  1766.     -y      Assume Yes on all queries.
  1767.  
  1768.  
  1769.     -z[f]   Read archive comment from file <f>. Use with -sc switch
  1770.             if you need to specify the character set for comment text file.
  1771.             If <f> is not specified, comment is read from stdin.
  1772.  
  1773.  
  1774.  
  1775.  Limitations
  1776.  ~~~~~~~~~~~
  1777.  
  1778.     Pathname is limited to 259 symbols.
  1779.  
  1780.     Maximum archive comment length is 62000 bytes.
  1781.  
  1782.     Command limitations:
  1783.  
  1784.     The commands 'd','u','f','c','cf' will not operate with archive
  1785.     volumes.
  1786.  
  1787.     The command 'a' cannot be used to update an archive volume, only to
  1788.     create a new one.
  1789.  
  1790.  
  1791.  Exit values
  1792.  ~~~~~~~~~~~
  1793.  
  1794.     RAR exits with a zero code (0) in case of successful operation. The exit
  1795.     code of non-zero means the operation was cancelled due to an error:
  1796.  
  1797.      255   USER BREAK       User stopped the process
  1798.  
  1799.        9   CREATE ERROR     Create file error
  1800.  
  1801.        8   MEMORY ERROR     Not enough memory for operation
  1802.  
  1803.        7   USER ERROR       Command line option error
  1804.  
  1805.        6   OPEN ERROR       Open file error
  1806.  
  1807.        5   WRITE ERROR      Write to disk error
  1808.  
  1809.        4   LOCKED ARCHIVE   Attempt to modify an archive previously locked
  1810.                             by the 'k' command
  1811.  
  1812.        3   CRC ERROR        A CRC error occurred when unpacking
  1813.  
  1814.        2   FATAL ERROR      A fatal error occurred
  1815.  
  1816.        1   WARNING          Non fatal error(s) occurred
  1817.  
  1818.        0   SUCCESS          Successful operation
  1819.  
  1820.  
  1821.  Glossary
  1822.  ~~~~~~~~
  1823.  
  1824.     Archive      Special file containing one or more files optionally
  1825.                  compressed and/or encrypted.
  1826.  
  1827.     Compression  A method of encoding data to reduce it's size.
  1828.  
  1829.     CRC          Cyclic Redundancy Check. Mathematical method calculating
  1830.                  special checking information for data validity.
  1831.  
  1832.     SFX          Archive module used to extract files from when executed.
  1833.                  (SelF-eXtracting module), usually in the form of a .EXE
  1834.                  file.
  1835.  
  1836.     Solid        An archive packed using a special compression method which
  1837.                  sees all files as one continuous data stream. Particularly
  1838.                  advantageous when packing a large number of small files.
  1839.  
  1840.     Volume       Part of a split archive. Splitting an archive to volumes
  1841.                  allows storing them on diskettes. Solid volumes must be
  1842.                  extracted starting from first in sequence.
  1843.  
  1844.  
  1845.  
  1846.  Copyrights
  1847.  
  1848.     (c) 1993-2007 Alexander Roshal
  1849.  
  1850.  
  1851.  
  1852.